/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LEGION
 * Date: 2023-04-18
 * Time: 22:18
 */
public class J230418 {
    public static void main(String[] args) {
        public static void func() {
            int[] array1 = new int[3];
            array1[0] = 10;
            array1[1] = 20;
            array1[2] = 30;
            int[] array2 = new int[]{1,2,3,4,5};
            array2[0] = 100;
            array2[1] = 200;
            array1 = array2;
            array1[2] = 300;
            array1[3] = 400;
            array2[4] = 500;
            for (int i = 0; i < array2.length; i++) {
                System.out.println(array2[i]);
            }
        }

    }
}
